package com.example.spring_boot_demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;

/**
 * <P> @Author: SongKeCheng
 * <P> Type: Class
 * <P> Description:
 * <P> Date: 2024/12/18:15:33
 */

@SuppressWarnings({"unchecked", ""})
@RestController
@RequestMapping("restFul")
public class RestFulController {
    private static final Logger log = LoggerFactory.getLogger(RestFulController.class);

    /**
     * 访问地址： http://localhost:8099/restFul/findByIdAndName/1/xm
     */
    @GetMapping("/findByIdAndName/{user}/{username}")
    public String restFulUrl(@PathVariable("user") String user,
                             @PathVariable("username") String username) {

        return user + "- " + username;
    }
}
